package com.njbw.book.facade.unFund;

/**
 * 测试类
 * 股民投资炒股版
 *
 * @author 黄侯淳
 * @since JDK 1.8
 */
public class UnFundTest {

    public static void main(String[] args) {
        Stock1 gu1 = new Stock1();
        Stock2 gu2 = new Stock2();
        Stock3 gu3 = new Stock3();
        NationalDebt nd = new NationalDebt();
        Realty rt = new Realty();

        // 用户需要了解股票、国债、房地产情况，需要参与这些项目的具体买和卖。耦合度很高。
        gu1.buy();
        gu2.buy();
        gu3.buy();
        nd.buy();
        rt.buy();

        gu1.sell();
        gu2.sell();
        gu3.sell();
        nd.sell();
        rt.sell();
    }
}
